Skip to content

Conversation

Hoomaaan
Copy link
Contributor

@Hoomaaan Hoomaaan commented Jul 24, 2025

This PR provides test coverage for DTensor.from_local() implementation with XLA device mesh. The test suite in test_xla_dtensor_from_local.py includes:

  1. Basic conversion tests validating:
    . Tensor shape and value preservation
    . Basic arithmetic operations
    . Device mesh handling

  2. Tests for different placement scenarios:
    . Replicated tensors
    . Sharded tensors
    . Multi-device configurations

  3. Data type compatibility tests covering:
    . float16, float32, int32, int64

PR for from_local() implementation: pytorch/pytorch#158779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants